<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="OnRadioButtonChangedModAlert.aspx.cs" Inherits="ModAlert_OnRadioButtonChangedModAlert"
	Title="OnRadioButtonChangedModAlert - ModWatch" %>
<asp:Content ContentPlaceHolderID="Head" Runat="Server">
</asp:Content>
<asp:Content ContentPlaceHolderID="PageContent" Runat="Server">

	<h2>OnRadioButtonChangedModAlertExtender Control</h2>

	<p>
		The OnRadioButtonChangedModAlertExtender control checks for changes
		when the value of a radio button has been changed.
	</p>

	<p>
		&lt;asp:RadioButton AutoPostBack="true" GroupName="Group" Text="Value 1"
		<br />
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		ID="rbTest1" runat="server" />
		<br />
		&lt;mw:OnRadioButtonChangedModAlertExtender TargetControlID="rbTest1" runat="server"
		<br />
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		NotifyModMessage="Changes have been made. Do you want to continue?" />

		<br /><br />

		&lt;asp:RadioButton AutoPostBack="true" GroupName="Group" Text="Value 2"
		<br />
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		ID="rbTest2" runat="server" />
		<br />
		&lt;mw:OnRadioButtonChangedModAlertExtender TargetControlID="rbTest2" runat="server"
		<br />
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		NotifyModMessage="Changes have been made. Do you want to continue?" />

		<br /><br />		
	</p>
	
	<p>
		Change the value of this text box, and select a different
		<br />
		value from the radio buttons to test this ModAlert control.
		<br />
		<asp:TextBox ID="txtTest" runat="server" />
		<mw:TextBoxModWatcherExtender TargetControlID="txtTest" runat="server" />

		<br /><br />

		<asp:RadioButton AutoPostBack="true" GroupName="Group" Text="Value 1" ID="rbTest1" runat="server" />
		<mw:OnRadioButtonChangedModAlertExtender TargetControlID="rbTest1" runat="server"
			NotifyModMessage="Changes have been made. Do you want to continue?" />

		<br />

		<asp:RadioButton AutoPostBack="true" GroupName="Group" Text="Value 2" ID="rbTest2" runat="server" />
		<mw:OnRadioButtonChangedModAlertExtender TargetControlID="rbTest2" runat="server"
			NotifyModMessage="Changes have been made. Do you want to continue?" />

		<br /><br />

		<asp:Button Text="Save Changes" OnClick="btnSave_Click" ID="btnSave" runat="server" />

		<br /><br />
		
		Page last served: <asp:Label ID="lblLastServed" runat="server"></asp:Label>
		<br />
		Change detected on server? <asp:Label ID="lblServerChange" runat="server"></asp:Label>
	</p>

</asp:Content>
